IsUserInRoles Method

Syntax

Context.Security.IsUserInRoles as L (UserName as C, RoleNames as C)

Arguments

UserNameCharacter

The name the user.

RoleNamesCharacter

The name of the roles. The role names are separated by a crlf.

Returns

resultLogical

Returns .T. if the user is in at least one of the specified roles; otherwise .F.

Description

Checks to see if the user is in at least one of supplied roles.

Discussion

Context.Security.IsUserInRoles() checks to see if the user is in at least one of supplied roles. Check Context.Security.CallResult.Success before using the return value.